<?php
//Functino for generating a string of a given length
//Out of random characters.
//Characters may consist of a large number of ASCII characters.
function genSalt($length){
	$chars = "qpwoeirutya;sldkfjghz.x,cmvnb=1-203948576Q}W{EPROTIYUA:SLDKFJGHZ?X>C<VMBN!+@_#)$(%*^&";
	$string = '';
	for ($p = 0; $p < $length; $p++) {
		$string .= $chars[mt_rand(0, strlen($chars)-1)];
	}
	
	return $string;
}